/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$().ready(function(){
    $('tr input[type=button].dodaj').click(function(){
        var prod = $(this).next().next().val();
        prod = parseInt(prod);
        prod++;
        $(this).next().next().val(prod);
    });
    $('tr input[type=button].usun').click(function(){
        var prod = $(this).next().val();
        prod = parseInt(prod);
        prod--;
        if(prod>=0){
            $(this).next().val(prod);
        }
    });
});

